package com.jeesite.modules.kj.api.vo.response;

import com.jeesite.modules.kj.entity.KjContributeProject;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

@Data
public class ProjectDetailResponseVo extends ProjectResponseVo{


    @ApiModelProperty(value = "项目内容")
    private String content;
    @ApiModelProperty(value = "当前用户参与的团队ID")
    private String teamId;

    @ApiModelProperty(value = "提示")
    private String remarks;

    @ApiModelProperty(value = "banner图")
    private String banner;

    @ApiModelProperty(value = "每捐赠积分")
    private BigDecimal perContribute;
    @ApiModelProperty(value = "捐赠金额")
    private BigDecimal contributeMoney;
    public ProjectDetailResponseVo() {
    }


    public ProjectDetailResponseVo(KjContributeProject kjContributeProject) {
        BeanUtils.copyProperties(kjContributeProject, this);
        if(this.content != null){
            this.content.replace("<p><br/></p>", "<br /><br />");
        }
    }
}
